/*
 * PwfKasseView.java
 */

package pwfkasse;


import org.jdesktop.application.Action;
import org.jdesktop.application.ResourceMap;
import org.jdesktop.application.SingleFrameApplication;
import org.jdesktop.application.FrameView;
import org.jdesktop.application.TaskMonitor;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.Timer;
import javax.swing.Icon;
import javax.swing.JDialog;
import javax.swing.JFrame;
import pwfkasse.logik.*;
/**
 * The application's main frame.
 */
public class PwfKasseView extends FrameView {

    public PwfKasseView(SingleFrameApplication app) {
        super(app);

        initComponents();

        // status bar initialization - message timeout, idle icon and busy animation, etc
        ResourceMap resourceMap = getResourceMap();
        int messageTimeout = resourceMap.getInteger("StatusBar.messageTimeout");
        messageTimer = new Timer(messageTimeout, new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                statusMessageLabel.setText("");
            }
        });
        messageTimer.setRepeats(false);
        int busyAnimationRate = resourceMap.getInteger("StatusBar.busyAnimationRate");
        for (int i = 0; i < busyIcons.length; i++) {
            busyIcons[i] = resourceMap.getIcon("StatusBar.busyIcons[" + i + "]");
        }
        busyIconTimer = new Timer(busyAnimationRate, new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                busyIconIndex = (busyIconIndex + 1) % busyIcons.length;
                statusAnimationLabel.setIcon(busyIcons[busyIconIndex]);
            }
        });
        idleIcon = resourceMap.getIcon("StatusBar.idleIcon");
        statusAnimationLabel.setIcon(idleIcon);
        progressBar.setVisible(false);

        // connecting action tasks to status bar via TaskMonitor
        TaskMonitor taskMonitor = new TaskMonitor(getApplication().getContext());
        taskMonitor.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                String propertyName = evt.getPropertyName();
                if ("started".equals(propertyName)) {
                    if (!busyIconTimer.isRunning()) {
                        statusAnimationLabel.setIcon(busyIcons[0]);
                        busyIconIndex = 0;
                        busyIconTimer.start();
                    }
                    progressBar.setVisible(true);
                    progressBar.setIndeterminate(true);
                } else if ("done".equals(propertyName)) {
                    busyIconTimer.stop();
                    statusAnimationLabel.setIcon(idleIcon);
                    progressBar.setVisible(false);
                    progressBar.setValue(0);
                } else if ("message".equals(propertyName)) {
                    String text = (String)(evt.getNewValue());
                    statusMessageLabel.setText((text == null) ? "" : text);
                    messageTimer.restart();
                } else if ("progress".equals(propertyName)) {
                    int value = (Integer)(evt.getNewValue());
                    progressBar.setVisible(true);
                    progressBar.setIndeterminate(false);
                    progressBar.setValue(value);
                }
            }
        });
    }

    @Action
    public void showAboutBox() {
        if (aboutBox == null) {
            JFrame mainFrame = PwfKasseApp.getApplication().getMainFrame();
            aboutBox = new PwfKasseAboutBox(mainFrame);
            aboutBox.setLocationRelativeTo(mainFrame);
        }
        PwfKasseApp.getApplication().show(aboutBox);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        mainPanel = new javax.swing.JPanel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPKasse = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        jCheckBox1 = new javax.swing.JCheckBox();
        jTextFieldMenge = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        jTextFieldArtikel = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        jTextFieldEinzelpreis = new javax.swing.JTextField();
        jLabel3 = new javax.swing.JLabel();
        jTextGesammtpreis = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        jButton1 = new javax.swing.JButton();
        jTextFieldGegeben = new javax.swing.JTextField();
        jTextFieldRueckgeld = new javax.swing.JTextField();
        jButton2 = new javax.swing.JButton();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jCheckBox2 = new javax.swing.JCheckBox();
        jPKundenanlage = new javax.swing.JPanel();
        anlageVorname = new javax.swing.JTextField();
        anlageName = new javax.swing.JTextField();
        anlageStrasse = new javax.swing.JTextField();
        anlageHausnummer = new javax.swing.JTextField();
        anlageLabelVorname = new javax.swing.JLabel();
        anlageLabelName = new javax.swing.JLabel();
        anlageLabelStrasse = new javax.swing.JLabel();
        anlageLabelHausnummer = new javax.swing.JLabel();
        anlagePLZ = new javax.swing.JTextField();
        anlageOrt = new javax.swing.JTextField();
        anlageLabelPLZ = new javax.swing.JLabel();
        anlageLabelOrt = new javax.swing.JLabel();
        anlageTelefon = new javax.swing.JTextField();
        anlageFax = new javax.swing.JTextField();
        anlageEmail = new javax.swing.JTextField();
        anlageKdNr = new javax.swing.JTextField();
        anlageErfasstAm = new javax.swing.JTextField();
        anlageGeburtsdatum = new javax.swing.JTextField();
        anlageRabatt = new javax.swing.JTextField();
        anlageGutschein = new javax.swing.JTextField();
        anlageOffenePosten = new javax.swing.JTextField();
        anlageLimit = new javax.swing.JTextField();
        jBAnlegenKunde = new javax.swing.JButton();
        jBLoeschenKunde = new javax.swing.JButton();
        anlageLabelTelefon = new javax.swing.JLabel();
        anlageLabelFax = new javax.swing.JLabel();
        anlageLabelEmail = new javax.swing.JLabel();
        anlageLabelGeburtsdatum = new javax.swing.JLabel();
        anlageLabelKdNr = new javax.swing.JLabel();
        anlageLabelErfasst = new javax.swing.JLabel();
        anlageLabelOffenePosten = new javax.swing.JLabel();
        anlageLabelRabatt = new javax.swing.JLabel();
        anlageLabelGutschein = new javax.swing.JLabel();
        anlageLabelLimit = new javax.swing.JLabel();
        jPSuche = new javax.swing.JPanel();
        jPSetup = new javax.swing.JPanel();
        jCbLookandFeel = new javax.swing.JComboBox();
        jPPreisliste = new javax.swing.JPanel();
        jPKassenabschluss = new javax.swing.JPanel();
        jPMitarbeiterAnlegen = new javax.swing.JPanel();
        anlageMitarbeiterVornameLabel = new javax.swing.JLabel();
        anlageMitarbeiterNameLabel = new javax.swing.JLabel();
        anlageMitarbeiterBearbeiterNrLabel = new javax.swing.JLabel();
        anlageMitarbeiterEmailLabel = new javax.swing.JLabel();
        anlageMitarbeiterBerechtigungnenLabel = new javax.swing.JLabel();
        anlageMitarbeiterGeburtsdatumLabel = new javax.swing.JLabel();
        anlageMitarbeiterVorname = new javax.swing.JTextField();
        anlageMitarbeiterName = new javax.swing.JTextField();
        anlageMitarbeiterGeburtsdatum = new javax.swing.JTextField();
        anlageMitarbeiterEmail = new javax.swing.JTextField();
        anlageMitarbeiterBerechtigungen = new javax.swing.JTextField();
        anlageMitarbeiterBearbeiterNr = new javax.swing.JTextField();
        jBanlegenMitarbeiter = new javax.swing.JButton();
        jBloeschenMitarbeiter = new javax.swing.JButton();
        jPanel8 = new javax.swing.JPanel();
        jPanel9 = new javax.swing.JPanel();
        jPanel10 = new javax.swing.JPanel();
        jPBackupExport = new javax.swing.JPanel();
        jButtonSichern = new javax.swing.JButton();
        jButtonLaden = new javax.swing.JButton();
        menuBar = new javax.swing.JMenuBar();
        javax.swing.JMenu fileMenu = new javax.swing.JMenu();
        javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();
        javax.swing.JMenu helpMenu = new javax.swing.JMenu();
        javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();
        statusPanel = new javax.swing.JPanel();
        javax.swing.JSeparator statusPanelSeparator = new javax.swing.JSeparator();
        statusMessageLabel = new javax.swing.JLabel();
        statusAnimationLabel = new javax.swing.JLabel();
        progressBar = new javax.swing.JProgressBar();

        mainPanel.setMinimumSize(new java.awt.Dimension(1024, 768));
        mainPanel.setName("mainPanel"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(pwfkasse.PwfKasseApp.class).getContext().getResourceMap(PwfKasseView.class);
        jTabbedPane1.setToolTipText(resourceMap.getString("jTabbedPane1.toolTipText")); // NOI18N
        jTabbedPane1.setName("jTabbedPane1"); // NOI18N
        jTabbedPane1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                jTabbedPane1MouseReleased(evt);
            }
        });

        jPKasse.setName("jPKasse"); // NOI18N

        jScrollPane1.setName("jScrollPane1"); // NOI18N

        jTextArea1.setColumns(20);
        jTextArea1.setEditable(false);
        jTextArea1.setRows(5);
        jTextArea1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, resourceMap.getString("jTextArea1.border.title"), javax.swing.border.TitledBorder.RIGHT, javax.swing.border.TitledBorder.DEFAULT_POSITION)); // NOI18N
        jTextArea1.setName("jTextArea1"); // NOI18N
        jScrollPane1.setViewportView(jTextArea1);

        jCheckBox1.setText(resourceMap.getString("jCheckBox1.text")); // NOI18N
        jCheckBox1.setName("jCheckBox1"); // NOI18N

        jTextFieldMenge.setText(resourceMap.getString("jTextFieldMenge.text")); // NOI18N
        jTextFieldMenge.setName("jTextFieldMenge"); // NOI18N

        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        jTextFieldArtikel.setText(resourceMap.getString("jTextFieldArtikel.text")); // NOI18N
        jTextFieldArtikel.setName("jTextFieldArtikel"); // NOI18N

        jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
        jLabel2.setName("jLabel2"); // NOI18N

        jTextFieldEinzelpreis.setText(resourceMap.getString("jTextFieldEinzelpreis.text")); // NOI18N
        jTextFieldEinzelpreis.setName("jTextFieldEinzelpreis"); // NOI18N

        jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
        jLabel3.setName("jLabel3"); // NOI18N

        jTextGesammtpreis.setEditable(false);
        jTextGesammtpreis.setText(resourceMap.getString("jTextGesammtpreis.text")); // NOI18N
        jTextGesammtpreis.setName("jTextGesammtpreis"); // NOI18N

        jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
        jLabel4.setName("jLabel4"); // NOI18N

        jButton1.setText(resourceMap.getString("jButton1.text")); // NOI18N
        jButton1.setName("jButton1"); // NOI18N
        jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                jButton1MouseReleased(evt);
            }
        });

        jTextFieldGegeben.setText(resourceMap.getString("jTextFieldGegeben.text")); // NOI18N
        jTextFieldGegeben.setName("jTextFieldGegeben"); // NOI18N

        jTextFieldRueckgeld.setEditable(false);
        jTextFieldRueckgeld.setText(resourceMap.getString("jTextFieldRueckgeld.text")); // NOI18N
        jTextFieldRueckgeld.setName("jTextFieldRueckgeld"); // NOI18N

        jButton2.setText(resourceMap.getString("jButton2.text")); // NOI18N
        jButton2.setName("jButton2"); // NOI18N
        jButton2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                jButton2MouseReleased(evt);
            }
        });

        jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
        jLabel5.setName("jLabel5"); // NOI18N

        jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
        jLabel6.setName("jLabel6"); // NOI18N

        jCheckBox2.setText(resourceMap.getString("jCheckBox2.text")); // NOI18N
        jCheckBox2.setName("jCheckBox2"); // NOI18N

        org.jdesktop.layout.GroupLayout jPKasseLayout = new org.jdesktop.layout.GroupLayout(jPKasse);
        jPKasse.setLayout(jPKasseLayout);
        jPKasseLayout.setHorizontalGroup(
            jPKasseLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPKasseLayout.createSequentialGroup()
                .addContainerGap()
                .add(jPKasseLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPKasseLayout.createSequentialGroup()
                        .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 979, Short.MAX_VALUE)
                        .addContainerGap())
                    .add(jPKasseLayout.createSequentialGroup()
                        .add(jPKasseLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, jCheckBox2, 0, 0, Short.MAX_VALUE)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, jCheckBox1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .add(18, 18, 18)
                        .add(jPKasseLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                            .add(jTextFieldMenge)
                            .add(jLabel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .add(36, 36, 36)
                        .add(jPKasseLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jTextFieldArtikel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 406, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(jLabel2))
                        .add(63, 63, 63)
                        .add(jPKasseLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jLabel3)
                            .add(jTextFieldEinzelpreis, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 85, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jPKasseLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jPKasseLayout.createSequentialGroup()
                                .add(jPKasseLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                                    .add(org.jdesktop.layout.GroupLayout.LEADING, jTextFieldGegeben, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(org.jdesktop.layout.GroupLayout.LEADING, jLabel5))
                                .addContainerGap())
                            .add(jPKasseLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                .add(jPKasseLayout.createSequentialGroup()
                                    .add(jLabel4)
                                    .addContainerGap(201, Short.MAX_VALUE))
                                .add(org.jdesktop.layout.GroupLayout.TRAILING, jPKasseLayout.createSequentialGroup()
                                    .add(jPKasseLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                                        .add(jPKasseLayout.createSequentialGroup()
                                            .add(jTextGesammtpreis, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 70, Short.MAX_VALUE)
                                            .add(jButton1))
                                        .add(org.jdesktop.layout.GroupLayout.LEADING, jLabel6)
                                        .add(org.jdesktop.layout.GroupLayout.LEADING, jPKasseLayout.createSequentialGroup()
                                            .add(jTextFieldRueckgeld, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 70, Short.MAX_VALUE)
                                            .add(jButton2)))
                                    .add(40, 40, 40)))))))
        );

        jPKasseLayout.linkSize(new java.awt.Component[] {jButton1, jButton2}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPKasseLayout.linkSize(new java.awt.Component[] {jTextFieldEinzelpreis, jTextFieldGegeben, jTextFieldRueckgeld, jTextGesammtpreis}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPKasseLayout.setVerticalGroup(
            jPKasseLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPKasseLayout.createSequentialGroup()
                .addContainerGap()
                .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 379, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPKasseLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(jPKasseLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                        .add(jPKasseLayout.createSequentialGroup()
                            .add(jLabel1)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(jTextFieldMenge, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .add(jPKasseLayout.createSequentialGroup()
                            .add(jPKasseLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                                .add(jLabel2)
                                .add(jLabel3)
                                .add(jLabel4))
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(jPKasseLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                                .add(jTextFieldArtikel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                .add(jTextFieldEinzelpreis, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                .add(jTextGesammtpreis, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                .add(jButton1))))
                    .add(jCheckBox1))
                .add(18, 18, 18)
                .add(jPKasseLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jCheckBox2)
                    .add(jPKasseLayout.createSequentialGroup()
                        .add(jLabel5)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jTextFieldGegeben, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 138, Short.MAX_VALUE)
                .add(jLabel6)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jPKasseLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jTextFieldRueckgeld, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jButton2))
                .add(33, 33, 33))
        );

        jTabbedPane1.addTab(resourceMap.getString("jPKasse.TabConstraints.tabTitle"), jPKasse); // NOI18N

        jPKundenanlage.setName("jPKundenanlage"); // NOI18N

        anlageVorname.setText(resourceMap.getString("anlageVorname.text")); // NOI18N
        anlageVorname.setName("anlageVorname"); // NOI18N

        anlageName.setText(resourceMap.getString("anlageName.text")); // NOI18N
        anlageName.setName("anlageName"); // NOI18N

        anlageStrasse.setText(resourceMap.getString("anlageStrasse.text")); // NOI18N
        anlageStrasse.setName("anlageStrasse"); // NOI18N

        anlageHausnummer.setText(resourceMap.getString("anlageHausnummer.text")); // NOI18N
        anlageHausnummer.setName("anlageHausnummer"); // NOI18N

        anlageLabelVorname.setText(resourceMap.getString("anlageLabelVorname.text")); // NOI18N
        anlageLabelVorname.setName("anlageLabelVorname"); // NOI18N

        anlageLabelName.setText(resourceMap.getString("anlageLabelName.text")); // NOI18N
        anlageLabelName.setName("anlageLabelName"); // NOI18N

        anlageLabelStrasse.setText(resourceMap.getString("anlageLabelStrasse.text")); // NOI18N
        anlageLabelStrasse.setName("anlageLabelStrasse"); // NOI18N

        anlageLabelHausnummer.setText(resourceMap.getString("anlageLabelHausnummer.text")); // NOI18N
        anlageLabelHausnummer.setName("anlageLabelHausnummer"); // NOI18N

        anlagePLZ.setText(resourceMap.getString("anlagePLZ.text")); // NOI18N
        anlagePLZ.setName("anlagePLZ"); // NOI18N

        anlageOrt.setText(resourceMap.getString("anlageOrt.text")); // NOI18N
        anlageOrt.setName("anlageOrt"); // NOI18N

        anlageLabelPLZ.setText(resourceMap.getString("anlageLabelPLZ.text")); // NOI18N
        anlageLabelPLZ.setName("anlageLabelPLZ"); // NOI18N

        anlageLabelOrt.setText(resourceMap.getString("anlageLabelOrt.text")); // NOI18N
        anlageLabelOrt.setName("anlageLabelOrt"); // NOI18N

        anlageTelefon.setText(resourceMap.getString("anlageTelefon.text")); // NOI18N
        anlageTelefon.setName("anlageTelefon"); // NOI18N

        anlageFax.setText(resourceMap.getString("anlageFax.text")); // NOI18N
        anlageFax.setName("anlageFax"); // NOI18N

        anlageEmail.setText(resourceMap.getString("anlageEmail.text")); // NOI18N
        anlageEmail.setName("anlageEmail"); // NOI18N

        anlageKdNr.setEditable(false);
        anlageKdNr.setText(resourceMap.getString("anlageKdNr.text")); // NOI18N
        anlageKdNr.setName("anlageKdNr"); // NOI18N

        anlageErfasstAm.setEditable(false);
        anlageErfasstAm.setText(resourceMap.getString("anlageErfasstAm.text")); // NOI18N
        anlageErfasstAm.setName("anlageErfasstAm"); // NOI18N

        anlageGeburtsdatum.setText(resourceMap.getString("anlageGeburtsdatum.text")); // NOI18N
        anlageGeburtsdatum.setName("anlageGeburtsdatum"); // NOI18N

        anlageRabatt.setText(resourceMap.getString("anlageRabatt.text")); // NOI18N
        anlageRabatt.setName("anlageRabatt"); // NOI18N

        anlageGutschein.setText(resourceMap.getString("anlageGutschein.text")); // NOI18N
        anlageGutschein.setName("anlageGutschein"); // NOI18N

        anlageOffenePosten.setEditable(false);
        anlageOffenePosten.setText(resourceMap.getString("anlageOffenePosten.text")); // NOI18N
        anlageOffenePosten.setName("anlageOffenePosten"); // NOI18N

        anlageLimit.setText(resourceMap.getString("anlageLimit.text")); // NOI18N
        anlageLimit.setName("anlageLimit"); // NOI18N

        jBAnlegenKunde.setText(resourceMap.getString("jBAnlegenKunde.text")); // NOI18N
        jBAnlegenKunde.setName("jBAnlegenKunde"); // NOI18N
        jBAnlegenKunde.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                jBAnlegenKundeMouseReleased(evt);
            }
        });

        jBLoeschenKunde.setText(resourceMap.getString("jBLoeschenKunde.text")); // NOI18N
        jBLoeschenKunde.setName("jBLoeschenKunde"); // NOI18N
        jBLoeschenKunde.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                jBLoeschenKundeMouseReleased(evt);
            }
        });

        anlageLabelTelefon.setText(resourceMap.getString("anlageLabelTelefon.text")); // NOI18N
        anlageLabelTelefon.setName("anlageLabelTelefon"); // NOI18N

        anlageLabelFax.setText(resourceMap.getString("anlageLabelFax.text")); // NOI18N
        anlageLabelFax.setName("anlageLabelFax"); // NOI18N

        anlageLabelEmail.setText(resourceMap.getString("anlageLabelEmail.text")); // NOI18N
        anlageLabelEmail.setName("anlageLabelEmail"); // NOI18N

        anlageLabelGeburtsdatum.setText(resourceMap.getString("anlageLabelGeburtsdatum.text")); // NOI18N
        anlageLabelGeburtsdatum.setName("anlageLabelGeburtsdatum"); // NOI18N

        anlageLabelKdNr.setText(resourceMap.getString("anlageLabelKdNr.text")); // NOI18N
        anlageLabelKdNr.setName("anlageLabelKdNr"); // NOI18N

        anlageLabelErfasst.setText(resourceMap.getString("anlageLabelErfasst.text")); // NOI18N
        anlageLabelErfasst.setName("anlageLabelErfasst"); // NOI18N

        anlageLabelOffenePosten.setForeground(resourceMap.getColor("anlageLabelOffenePosten.foreground")); // NOI18N
        anlageLabelOffenePosten.setText(resourceMap.getString("anlageLabelOffenePosten.text")); // NOI18N
        anlageLabelOffenePosten.setName("anlageLabelOffenePosten"); // NOI18N

        anlageLabelRabatt.setText(resourceMap.getString("anlageLabelRabatt.text")); // NOI18N
        anlageLabelRabatt.setName("anlageLabelRabatt"); // NOI18N

        anlageLabelGutschein.setText(resourceMap.getString("anlageLabelGutschein.text")); // NOI18N
        anlageLabelGutschein.setName("anlageLabelGutschein"); // NOI18N

        anlageLabelLimit.setText(resourceMap.getString("anlageLabelLimit.text")); // NOI18N
        anlageLabelLimit.setName("anlageLabelLimit"); // NOI18N

        org.jdesktop.layout.GroupLayout jPKundenanlageLayout = new org.jdesktop.layout.GroupLayout(jPKundenanlage);
        jPKundenanlage.setLayout(jPKundenanlageLayout);
        jPKundenanlageLayout.setHorizontalGroup(
            jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPKundenanlageLayout.createSequentialGroup()
                .add(38, 38, 38)
                .add(jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                    .add(jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, anlageLabelVorname)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, anlageLabelStrasse)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, jPKundenanlageLayout.createSequentialGroup()
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(anlageVorname, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 101, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .add(org.jdesktop.layout.GroupLayout.LEADING, anlageStrasse, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 101, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, anlageLabelPLZ)
                        .add(anlagePLZ, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 101, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(anlageTelefon, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 101, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(anlageEmail, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 101, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(jBAnlegenKunde)
                    .add(anlageLabelTelefon)
                    .add(anlageLabelEmail))
                .add(46, 46, 46)
                .add(jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPKundenanlageLayout.createSequentialGroup()
                        .add(jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, anlageGeburtsdatum)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, anlageFax)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, anlageName)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, anlageHausnummer)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, anlageOrt)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, anlageLabelName)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, anlageLabelHausnummer)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, jBLoeschenKunde, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .add(107, 107, 107)
                        .add(jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                            .add(jPKundenanlageLayout.createSequentialGroup()
                                .add(jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                    .add(anlageKdNr, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(anlageLabelKdNr))
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                .add(jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                    .add(anlageLabelErfasst)
                                    .add(anlageErfasstAm, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 59, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                .add(jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                                    .add(anlageOffenePosten)
                                    .add(anlageLabelOffenePosten)))
                            .add(jPKundenanlageLayout.createSequentialGroup()
                                .add(jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                    .add(anlageLabelRabatt)
                                    .add(anlageRabatt, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                .add(jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                    .add(anlageLabelGutschein)
                                    .add(anlageGutschein, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                .add(jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                    .add(anlageLabelLimit)
                                    .add(anlageLimit, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))))
                    .add(anlageLabelGeburtsdatum)
                    .add(anlageLabelOrt)
                    .add(anlageLabelFax))
                .addContainerGap(294, Short.MAX_VALUE))
        );

        jPKundenanlageLayout.linkSize(new java.awt.Component[] {jBAnlegenKunde, jBLoeschenKunde}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPKundenanlageLayout.linkSize(new java.awt.Component[] {anlageErfasstAm, anlageGutschein, anlageKdNr, anlageLabelRabatt, anlageLimit, anlageOffenePosten, anlageRabatt}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPKundenanlageLayout.linkSize(new java.awt.Component[] {anlageEmail, anlageFax, anlageGeburtsdatum, anlageHausnummer, anlageName, anlageOrt, anlagePLZ, anlageStrasse, anlageTelefon, anlageVorname}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPKundenanlageLayout.setVerticalGroup(
            jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPKundenanlageLayout.createSequentialGroup()
                .add(31, 31, 31)
                .add(jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPKundenanlageLayout.createSequentialGroup()
                        .add(jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(anlageLabelVorname)
                            .add(anlageLabelName))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(anlageVorname, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(anlageName, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                        .add(jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(anlageLabelStrasse)
                            .add(anlageLabelHausnummer))
                        .add(3, 3, 3)
                        .add(jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(anlageStrasse, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(anlageHausnummer, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .add(3, 3, 3)
                        .add(jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(anlageLabelPLZ)
                            .add(anlageLabelOrt))
                        .add(1, 1, 1)
                        .add(jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(anlagePLZ, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(anlageOrt, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .add(18, 18, 18)
                        .add(jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(anlageLabelTelefon)
                            .add(anlageLabelFax))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(anlageTelefon, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(anlageFax, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .add(jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jPKundenanlageLayout.createSequentialGroup()
                                .add(5, 5, 5)
                                .add(anlageLabelGeburtsdatum))
                            .add(jPKundenanlageLayout.createSequentialGroup()
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                                .add(anlageLabelEmail)))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(anlageEmail, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(anlageGeburtsdatum, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .add(34, 34, 34)
                        .add(jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jBAnlegenKunde)
                            .add(jBLoeschenKunde)))
                    .add(jPKundenanlageLayout.createSequentialGroup()
                        .add(jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                            .add(jPKundenanlageLayout.createSequentialGroup()
                                .add(anlageLabelErfasst)
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                .add(anlageErfasstAm, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(jPKundenanlageLayout.createSequentialGroup()
                                .add(anlageLabelKdNr)
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                .add(anlageKdNr, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(jPKundenanlageLayout.createSequentialGroup()
                                .add(anlageLabelOffenePosten)
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                .add(anlageOffenePosten, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                                .add(jPKundenanlageLayout.createSequentialGroup()
                                    .add(anlageLabelRabatt)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(anlageRabatt, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                                .add(jPKundenanlageLayout.createSequentialGroup()
                                    .add(anlageLabelGutschein)
                                    .add(3, 3, 3)
                                    .add(jPKundenanlageLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                                        .add(anlageGutschein, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                        .add(anlageLimit, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))
                            .add(anlageLabelLimit))))
                .addContainerGap(388, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab(resourceMap.getString("jPKundenanlage.TabConstraints.tabTitle"), jPKundenanlage); // NOI18N

        jPSuche.setName("jPSuche"); // NOI18N

        org.jdesktop.layout.GroupLayout jPSucheLayout = new org.jdesktop.layout.GroupLayout(jPSuche);
        jPSuche.setLayout(jPSucheLayout);
        jPSucheLayout.setHorizontalGroup(
            jPSucheLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 999, Short.MAX_VALUE)
        );
        jPSucheLayout.setVerticalGroup(
            jPSucheLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 711, Short.MAX_VALUE)
        );

        jTabbedPane1.addTab(resourceMap.getString("jPSuche.TabConstraints.tabTitle"), jPSuche); // NOI18N

        jPSetup.setName("jPSetup"); // NOI18N

        jCbLookandFeel.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Look and Feel 1", "Look and Feel 2 ", "Look and Feel 3", "Look and Feel 4 " }));
        jCbLookandFeel.setName("jCbLookandFeel"); // NOI18N
        jCbLookandFeel.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                jCbLookandFeelMouseReleased(evt);
            }
        });

        org.jdesktop.layout.GroupLayout jPSetupLayout = new org.jdesktop.layout.GroupLayout(jPSetup);
        jPSetup.setLayout(jPSetupLayout);
        jPSetupLayout.setHorizontalGroup(
            jPSetupLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPSetupLayout.createSequentialGroup()
                .addContainerGap()
                .add(jCbLookandFeel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(886, Short.MAX_VALUE))
        );
        jPSetupLayout.setVerticalGroup(
            jPSetupLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPSetupLayout.createSequentialGroup()
                .addContainerGap()
                .add(jCbLookandFeel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(680, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab(resourceMap.getString("jPSetup.TabConstraints.tabTitle"), jPSetup); // NOI18N

        jPPreisliste.setName("jPPreisliste"); // NOI18N

        org.jdesktop.layout.GroupLayout jPPreislisteLayout = new org.jdesktop.layout.GroupLayout(jPPreisliste);
        jPPreisliste.setLayout(jPPreislisteLayout);
        jPPreislisteLayout.setHorizontalGroup(
            jPPreislisteLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 999, Short.MAX_VALUE)
        );
        jPPreislisteLayout.setVerticalGroup(
            jPPreislisteLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 711, Short.MAX_VALUE)
        );

        jTabbedPane1.addTab(resourceMap.getString("jPPreisliste.TabConstraints.tabTitle"), jPPreisliste); // NOI18N

        jPKassenabschluss.setName("jPKassenabschluss"); // NOI18N

        org.jdesktop.layout.GroupLayout jPKassenabschlussLayout = new org.jdesktop.layout.GroupLayout(jPKassenabschluss);
        jPKassenabschluss.setLayout(jPKassenabschlussLayout);
        jPKassenabschlussLayout.setHorizontalGroup(
            jPKassenabschlussLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 999, Short.MAX_VALUE)
        );
        jPKassenabschlussLayout.setVerticalGroup(
            jPKassenabschlussLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 711, Short.MAX_VALUE)
        );

        jTabbedPane1.addTab(resourceMap.getString("jPKassenabschluss.TabConstraints.tabTitle"), jPKassenabschluss); // NOI18N

        jPMitarbeiterAnlegen.setName("jPMitarbeiterAnlegen"); // NOI18N

        anlageMitarbeiterVornameLabel.setText(resourceMap.getString("anlageMitarbeiterVornameLabel.text")); // NOI18N
        anlageMitarbeiterVornameLabel.setName("anlageMitarbeiterVornameLabel"); // NOI18N

        anlageMitarbeiterNameLabel.setText(resourceMap.getString("anlageMitarbeiterNameLabel.text")); // NOI18N
        anlageMitarbeiterNameLabel.setName("anlageMitarbeiterNameLabel"); // NOI18N

        anlageMitarbeiterBearbeiterNrLabel.setText(resourceMap.getString("anlageMitarbeiterBearbeiterNrLabel.text")); // NOI18N
        anlageMitarbeiterBearbeiterNrLabel.setName("anlageMitarbeiterBearbeiterNrLabel"); // NOI18N

        anlageMitarbeiterEmailLabel.setText(resourceMap.getString("anlageMitarbeiterEmailLabel.text")); // NOI18N
        anlageMitarbeiterEmailLabel.setName("anlageMitarbeiterEmailLabel"); // NOI18N

        anlageMitarbeiterBerechtigungnenLabel.setText(resourceMap.getString("anlageMitarbeiterBerechtigungnenLabel.text")); // NOI18N
        anlageMitarbeiterBerechtigungnenLabel.setName("anlageMitarbeiterBerechtigungnenLabel"); // NOI18N

        anlageMitarbeiterGeburtsdatumLabel.setText(resourceMap.getString("anlageMitarbeiterGeburtsdatumLabel.text")); // NOI18N
        anlageMitarbeiterGeburtsdatumLabel.setName("anlageMitarbeiterGeburtsdatumLabel"); // NOI18N

        anlageMitarbeiterVorname.setText(resourceMap.getString("anlageMitarbeiterVorname.text")); // NOI18N
        anlageMitarbeiterVorname.setName("anlageMitarbeiterVorname"); // NOI18N

        anlageMitarbeiterName.setText(resourceMap.getString("anlageMitarbeiterName.text")); // NOI18N
        anlageMitarbeiterName.setName("anlageMitarbeiterName"); // NOI18N

        anlageMitarbeiterGeburtsdatum.setText(resourceMap.getString("anlageMitarbeiterGeburtsdatum.text")); // NOI18N
        anlageMitarbeiterGeburtsdatum.setName("anlageMitarbeiterGeburtsdatum"); // NOI18N

        anlageMitarbeiterEmail.setText(resourceMap.getString("anlageMitarbeiterEmail.text")); // NOI18N
        anlageMitarbeiterEmail.setName("anlageMitarbeiterEmail"); // NOI18N

        anlageMitarbeiterBerechtigungen.setText(resourceMap.getString("anlageMitarbeiterBerechtigungen.text")); // NOI18N
        anlageMitarbeiterBerechtigungen.setName("anlageMitarbeiterBerechtigungen"); // NOI18N

        anlageMitarbeiterBearbeiterNr.setText(resourceMap.getString("anlageMitarbeiterBearbeiterNr.text")); // NOI18N
        anlageMitarbeiterBearbeiterNr.setName("anlageMitarbeiterBearbeiterNr"); // NOI18N

        jBanlegenMitarbeiter.setText(resourceMap.getString("jBanlegenMitarbeiter.text")); // NOI18N
        jBanlegenMitarbeiter.setName("jBanlegenMitarbeiter"); // NOI18N
        jBanlegenMitarbeiter.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                jBanlegenMitarbeiterMouseReleased(evt);
            }
        });

        jBloeschenMitarbeiter.setText(resourceMap.getString("jBloeschenMitarbeiter.text")); // NOI18N
        jBloeschenMitarbeiter.setName("jBloeschenMitarbeiter"); // NOI18N
        jBloeschenMitarbeiter.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                jBloeschenMitarbeiterMouseReleased(evt);
            }
        });

        org.jdesktop.layout.GroupLayout jPMitarbeiterAnlegenLayout = new org.jdesktop.layout.GroupLayout(jPMitarbeiterAnlegen);
        jPMitarbeiterAnlegen.setLayout(jPMitarbeiterAnlegenLayout);
        jPMitarbeiterAnlegenLayout.setHorizontalGroup(
            jPMitarbeiterAnlegenLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPMitarbeiterAnlegenLayout.createSequentialGroup()
                .add(86, 86, 86)
                .add(jPMitarbeiterAnlegenLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, jBloeschenMitarbeiter, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 325, Short.MAX_VALUE)
                    .add(jPMitarbeiterAnlegenLayout.createSequentialGroup()
                        .add(jPMitarbeiterAnlegenLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, anlageMitarbeiterEmail, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 83, Short.MAX_VALUE)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, anlageMitarbeiterVornameLabel)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, anlageMitarbeiterEmailLabel)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, anlageMitarbeiterVorname, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 83, Short.MAX_VALUE))
                        .add(42, 42, 42)
                        .add(jPMitarbeiterAnlegenLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                            .add(anlageMitarbeiterNameLabel)
                            .add(anlageMitarbeiterBerechtigungnenLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .add(anlageMitarbeiterName)
                            .add(anlageMitarbeiterBerechtigungen))
                        .add(43, 43, 43)
                        .add(jPMitarbeiterAnlegenLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                            .add(anlageMitarbeiterBearbeiterNr)
                            .add(anlageMitarbeiterGeburtsdatumLabel)
                            .add(anlageMitarbeiterBearbeiterNrLabel)
                            .add(anlageMitarbeiterGeburtsdatum, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 82, Short.MAX_VALUE)))
                    .add(org.jdesktop.layout.GroupLayout.LEADING, jBanlegenMitarbeiter, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 325, Short.MAX_VALUE))
                .add(588, 588, 588))
        );
        jPMitarbeiterAnlegenLayout.setVerticalGroup(
            jPMitarbeiterAnlegenLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPMitarbeiterAnlegenLayout.createSequentialGroup()
                .add(26, 26, 26)
                .add(jPMitarbeiterAnlegenLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(anlageMitarbeiterVornameLabel)
                    .add(anlageMitarbeiterNameLabel)
                    .add(anlageMitarbeiterGeburtsdatumLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 14, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPMitarbeiterAnlegenLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(anlageMitarbeiterVorname, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(anlageMitarbeiterName, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(anlageMitarbeiterGeburtsdatum, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(25, 25, 25)
                .add(jPMitarbeiterAnlegenLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(anlageMitarbeiterEmailLabel)
                    .add(anlageMitarbeiterBerechtigungnenLabel)
                    .add(anlageMitarbeiterBearbeiterNrLabel))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jPMitarbeiterAnlegenLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(anlageMitarbeiterBerechtigungen, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(anlageMitarbeiterBearbeiterNr, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(anlageMitarbeiterEmail, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(42, 42, 42)
                .add(jBanlegenMitarbeiter)
                .add(30, 30, 30)
                .add(jBloeschenMitarbeiter)
                .addContainerGap(452, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab(resourceMap.getString("jPMitarbeiterAnlegen.TabConstraints.tabTitle"), jPMitarbeiterAnlegen); // NOI18N

        jPanel8.setName("jPanel8"); // NOI18N

        org.jdesktop.layout.GroupLayout jPanel8Layout = new org.jdesktop.layout.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 999, Short.MAX_VALUE)
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 711, Short.MAX_VALUE)
        );

        jTabbedPane1.addTab(resourceMap.getString("jPanel8.TabConstraints.tabTitle"), jPanel8); // NOI18N

        jPanel9.setName("jPanel9"); // NOI18N

        org.jdesktop.layout.GroupLayout jPanel9Layout = new org.jdesktop.layout.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 999, Short.MAX_VALUE)
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 711, Short.MAX_VALUE)
        );

        jTabbedPane1.addTab(resourceMap.getString("jPanel9.TabConstraints.tabTitle"), jPanel9); // NOI18N

        jPanel10.setName("jPanel10"); // NOI18N

        org.jdesktop.layout.GroupLayout jPanel10Layout = new org.jdesktop.layout.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 999, Short.MAX_VALUE)
        );
        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 711, Short.MAX_VALUE)
        );

        jTabbedPane1.addTab(resourceMap.getString("jPanel10.TabConstraints.tabTitle"), jPanel10); // NOI18N

        jPBackupExport.setName("jPBackupExport"); // NOI18N

        jButtonSichern.setText(resourceMap.getString("jButtonSichern.text")); // NOI18N
        jButtonSichern.setName("jButtonSichern"); // NOI18N

        jButtonLaden.setText(resourceMap.getString("jButtonLaden.text")); // NOI18N
        jButtonLaden.setName("jButtonLaden"); // NOI18N

        org.jdesktop.layout.GroupLayout jPBackupExportLayout = new org.jdesktop.layout.GroupLayout(jPBackupExport);
        jPBackupExport.setLayout(jPBackupExportLayout);
        jPBackupExportLayout.setHorizontalGroup(
            jPBackupExportLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPBackupExportLayout.createSequentialGroup()
                .add(20, 20, 20)
                .add(jButtonSichern)
                .add(18, 18, 18)
                .add(jButtonLaden)
                .addContainerGap(827, Short.MAX_VALUE))
        );

        jPBackupExportLayout.linkSize(new java.awt.Component[] {jButtonLaden, jButtonSichern}, org.jdesktop.layout.GroupLayout.HORIZONTAL);

        jPBackupExportLayout.setVerticalGroup(
            jPBackupExportLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPBackupExportLayout.createSequentialGroup()
                .addContainerGap(665, Short.MAX_VALUE)
                .add(jPBackupExportLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jButtonLaden)
                    .add(jButtonSichern))
                .add(23, 23, 23))
        );

        jTabbedPane1.addTab(resourceMap.getString("jPBackupExport.TabConstraints.tabTitle"), jPBackupExport); // NOI18N

        org.jdesktop.layout.GroupLayout mainPanelLayout = new org.jdesktop.layout.GroupLayout(mainPanel);
        mainPanel.setLayout(mainPanelLayout);
        mainPanelLayout.setHorizontalGroup(
            mainPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(mainPanelLayout.createSequentialGroup()
                .addContainerGap()
                .add(jTabbedPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 1004, Short.MAX_VALUE)
                .addContainerGap())
        );
        mainPanelLayout.setVerticalGroup(
            mainPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(mainPanelLayout.createSequentialGroup()
                .addContainerGap()
                .add(jTabbedPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 739, Short.MAX_VALUE)
                .addContainerGap())
        );

        menuBar.setName("menuBar"); // NOI18N

        fileMenu.setText(resourceMap.getString("fileMenu.text")); // NOI18N
        fileMenu.setName("fileMenu"); // NOI18N

        javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(pwfkasse.PwfKasseApp.class).getContext().getActionMap(PwfKasseView.class, this);
        exitMenuItem.setAction(actionMap.get("quit")); // NOI18N
        exitMenuItem.setText(resourceMap.getString("exitMenuItem.text")); // NOI18N
        exitMenuItem.setName("exitMenuItem"); // NOI18N
        fileMenu.add(exitMenuItem);

        menuBar.add(fileMenu);

        helpMenu.setText(resourceMap.getString("helpMenu.text")); // NOI18N
        helpMenu.setName("helpMenu"); // NOI18N

        aboutMenuItem.setAction(actionMap.get("showAboutBox")); // NOI18N
        aboutMenuItem.setText(resourceMap.getString("aboutMenuItem.text")); // NOI18N
        aboutMenuItem.setName("aboutMenuItem"); // NOI18N
        helpMenu.add(aboutMenuItem);

        menuBar.add(helpMenu);

        statusPanel.setName("statusPanel"); // NOI18N

        statusPanelSeparator.setName("statusPanelSeparator"); // NOI18N

        statusMessageLabel.setName("statusMessageLabel"); // NOI18N

        statusAnimationLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        statusAnimationLabel.setName("statusAnimationLabel"); // NOI18N

        progressBar.setName("progressBar"); // NOI18N

        org.jdesktop.layout.GroupLayout statusPanelLayout = new org.jdesktop.layout.GroupLayout(statusPanel);
        statusPanel.setLayout(statusPanelLayout);
        statusPanelLayout.setHorizontalGroup(
            statusPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(statusPanelSeparator, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 1024, Short.MAX_VALUE)
            .add(statusPanelLayout.createSequentialGroup()
                .addContainerGap()
                .add(statusMessageLabel)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 854, Short.MAX_VALUE)
                .add(progressBar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(statusAnimationLabel)
                .addContainerGap())
        );
        statusPanelLayout.setVerticalGroup(
            statusPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(statusPanelLayout.createSequentialGroup()
                .add(statusPanelSeparator, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .add(statusPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(statusMessageLabel)
                    .add(statusAnimationLabel)
                    .add(progressBar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(3, 3, 3))
        );

        setComponent(mainPanel);
        setMenuBar(menuBar);
        setStatusBar(statusPanel);
    }// </editor-fold>//GEN-END:initComponents

    private void jButton2MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton2MouseReleased
        System.out.println("BELEG DRUCKEN");
    }//GEN-LAST:event_jButton2MouseReleased

    private void jButton1MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton1MouseReleased
        System.out.println("Position zufuegen");
    }//GEN-LAST:event_jButton1MouseReleased

    private void jBanlegenMitarbeiterMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jBanlegenMitarbeiterMouseReleased
        new Aktionen().mitarbeiterAnlegen(anlageMitarbeiterVorname.getText(), anlageMitarbeiterName.getText(),
                Integer.parseInt(anlageMitarbeiterBearbeiterNr.getText()),
                anlageMitarbeiterEmail.getText(), Integer.parseInt(anlageMitarbeiterBerechtigungen.getText()),
                anlageMitarbeiterGeburtsdatumLabel.getText());
        statusMessageLabel.setText("Mitarbeiter "+ anlageMitarbeiterName.getText() +" wurde erfolgreich angelegt!");
}//GEN-LAST:event_jBanlegenMitarbeiterMouseReleased

    private void jBloeschenMitarbeiterMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jBloeschenMitarbeiterMouseReleased

        anlageMitarbeiterVorname.setText("");
        anlageMitarbeiterName.setText("");
        anlageMitarbeiterBearbeiterNr.setText("");
        anlageMitarbeiterEmail.setText("");
        anlageMitarbeiterGeburtsdatum.setText("");
        anlageMitarbeiterBerechtigungen.setText("");

        statusMessageLabel.setText("Ihre Eingabe wurde erfolgreich zurueckgesetzt");
       
       
        
}//GEN-LAST:event_jBloeschenMitarbeiterMouseReleased

    private void jTabbedPane1MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTabbedPane1MouseReleased
        statusMessageLabel.setText("");
    }//GEN-LAST:event_jTabbedPane1MouseReleased

    private void jBAnlegenKundeMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jBAnlegenKundeMouseReleased
        new Aktionen().kundeAnlegen(anlageName.getText(), anlageVorname.getText(),
                anlageStrasse.getText(), Integer.parseInt(anlageHausnummer.getText()),
                anlageOrt.getText(), Integer.parseInt(anlagePLZ.getText()),
                anlageTelefon.getText(), anlageFax.getText(), anlageEmail.getText(),
                Integer.parseInt(anlageKdNr.getName()), anlageErfasstAm.getText(),
                anlageGeburtsdatum.getText(), Double.parseDouble(anlageRabatt.getText()),
                Double.parseDouble(anlageGutschein.getText()), Double.parseDouble(anlageOffenePosten.getText()),
                Double.parseDouble(anlageLimit.getText()));
        statusMessageLabel.setText("Kunde "+ anlageName.getText() +" wurde erfolgreich angelegt!");
    }//GEN-LAST:event_jBAnlegenKundeMouseReleased

    private void jBLoeschenKundeMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jBLoeschenKundeMouseReleased

        anlageEmail.setText("");
        anlageErfasstAm.setText("");
        anlageFax.setText("");
        anlageGeburtsdatum.setText("");
        anlageGutschein.setText("");
        anlageHausnummer.setText("");
        anlageKdNr.setText("");
        anlageLimit.setText("");
        anlageName.setText("");
        anlageOffenePosten.setText("");
        anlageOrt.setText("");
        anlagePLZ.setText("");
        anlageRabatt.setText("");
        anlageStrasse.setText("");
        anlageTelefon.setText("");
        anlageVorname.setText("");
        statusMessageLabel.setText("Ihre Eingabe wurde erfolgreich zurueckgesetzt");

    }//GEN-LAST:event_jBLoeschenKundeMouseReleased

    private void jCbLookandFeelMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jCbLookandFeelMouseReleased
        // Auslesen der jCb Look and Feel um das LnF einzustellen.
        
    }//GEN-LAST:event_jCbLookandFeelMouseReleased

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextField anlageEmail;
    private javax.swing.JTextField anlageErfasstAm;
    private javax.swing.JTextField anlageFax;
    private javax.swing.JTextField anlageGeburtsdatum;
    private javax.swing.JTextField anlageGutschein;
    private javax.swing.JTextField anlageHausnummer;
    private javax.swing.JTextField anlageKdNr;
    private javax.swing.JLabel anlageLabelEmail;
    private javax.swing.JLabel anlageLabelErfasst;
    private javax.swing.JLabel anlageLabelFax;
    private javax.swing.JLabel anlageLabelGeburtsdatum;
    private javax.swing.JLabel anlageLabelGutschein;
    private javax.swing.JLabel anlageLabelHausnummer;
    private javax.swing.JLabel anlageLabelKdNr;
    private javax.swing.JLabel anlageLabelLimit;
    private javax.swing.JLabel anlageLabelName;
    private javax.swing.JLabel anlageLabelOffenePosten;
    private javax.swing.JLabel anlageLabelOrt;
    private javax.swing.JLabel anlageLabelPLZ;
    private javax.swing.JLabel anlageLabelRabatt;
    private javax.swing.JLabel anlageLabelStrasse;
    private javax.swing.JLabel anlageLabelTelefon;
    private javax.swing.JLabel anlageLabelVorname;
    private javax.swing.JTextField anlageLimit;
    private javax.swing.JTextField anlageMitarbeiterBearbeiterNr;
    private javax.swing.JLabel anlageMitarbeiterBearbeiterNrLabel;
    private javax.swing.JTextField anlageMitarbeiterBerechtigungen;
    private javax.swing.JLabel anlageMitarbeiterBerechtigungnenLabel;
    private javax.swing.JTextField anlageMitarbeiterEmail;
    private javax.swing.JLabel anlageMitarbeiterEmailLabel;
    private javax.swing.JTextField anlageMitarbeiterGeburtsdatum;
    private javax.swing.JLabel anlageMitarbeiterGeburtsdatumLabel;
    private javax.swing.JTextField anlageMitarbeiterName;
    private javax.swing.JLabel anlageMitarbeiterNameLabel;
    private javax.swing.JTextField anlageMitarbeiterVorname;
    private javax.swing.JLabel anlageMitarbeiterVornameLabel;
    private javax.swing.JTextField anlageName;
    private javax.swing.JTextField anlageOffenePosten;
    private javax.swing.JTextField anlageOrt;
    private javax.swing.JTextField anlagePLZ;
    private javax.swing.JTextField anlageRabatt;
    private javax.swing.JTextField anlageStrasse;
    private javax.swing.JTextField anlageTelefon;
    private javax.swing.JTextField anlageVorname;
    private javax.swing.JButton jBAnlegenKunde;
    private javax.swing.JButton jBLoeschenKunde;
    private javax.swing.JButton jBanlegenMitarbeiter;
    private javax.swing.JButton jBloeschenMitarbeiter;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButtonLaden;
    private javax.swing.JButton jButtonSichern;
    private javax.swing.JComboBox jCbLookandFeel;
    private javax.swing.JCheckBox jCheckBox1;
    private javax.swing.JCheckBox jCheckBox2;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JPanel jPBackupExport;
    private javax.swing.JPanel jPKasse;
    private javax.swing.JPanel jPKassenabschluss;
    private javax.swing.JPanel jPKundenanlage;
    private javax.swing.JPanel jPMitarbeiterAnlegen;
    private javax.swing.JPanel jPPreisliste;
    private javax.swing.JPanel jPSetup;
    private javax.swing.JPanel jPSuche;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTextArea jTextArea1;
    private javax.swing.JTextField jTextFieldArtikel;
    private javax.swing.JTextField jTextFieldEinzelpreis;
    private javax.swing.JTextField jTextFieldGegeben;
    private javax.swing.JTextField jTextFieldMenge;
    private javax.swing.JTextField jTextFieldRueckgeld;
    private javax.swing.JTextField jTextGesammtpreis;
    private javax.swing.JPanel mainPanel;
    private javax.swing.JMenuBar menuBar;
    private javax.swing.JProgressBar progressBar;
    private javax.swing.JLabel statusAnimationLabel;
    private javax.swing.JLabel statusMessageLabel;
    private javax.swing.JPanel statusPanel;
    // End of variables declaration//GEN-END:variables

    private final Timer messageTimer;
    private final Timer busyIconTimer;
    private final Icon idleIcon;
    private final Icon[] busyIcons = new Icon[15];
    private int busyIconIndex = 0;

    private JDialog aboutBox;
}
